<#ftl output_format="HTML" >
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <title>登录 [Sipahi]</title>
        <link rel="shortcut icon" href="<@spring.url '/images/favicon.ico' />" type="image/x-icon">
        <link rel="icon" href="<@spring.url '/images/favicon.ico' />" type="image/x-icon">
        <#include "/css.ftl" />
        <style type="text/css">
.signin-box {
    width: 450px;
    padding: 15px;
    margin: 0 auto;
}
        </style>
        <#include "/js.ftl" />
    </head>
    <body>
        <div class="container" style="padding-top: 72px;">
            <form class="form signin-box" method="POST">
                <h3 class="form-signin-heading">Sipahi 内容管理系统</h3>
                <#if (Request.errorCode!0) != 0>
                <div class="form-group" >
                    <p class="alert alert-danger alert-dismissible" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        登录名与口令不匹配，请重新输入。
                    </p>
                </div>
                </#if>
                <div class="form-group">
                    <label class="sr-only" for="username">登录名：</label>
                    <input name="username" type="text" class="form-control" placeholder="登录名" maxlength="40" required autofocus />
                </div>
                <div class="form-group">
                    <label class="sr-only" for="password">口令：</label>
                    <input name="password" type="password" class="form-control" placeholder="口令" maxlength="20" required />
                </div>
                <div class="form-group">
                    <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
                </div>
            </form>
        </div>
    </body>
</html>
